mozbuild.lockfiles package
Submodules
mozbuild.lockfiles.generate_python_lockfiles module
- class mozbuild.lockfiles.generate_python_lockfiles.GeneratePythonLockfiles(*args, **kwargs)
Bases:
MozbuildObject
- cleanup()
- create_pyproject_toml_for_site(site_name: str)
- lock_site(site_name: str)
- run(keep_lockfiles: bool, sites: List[str] | None = None) int
- setup(keep_lockfiles: bool, sites: List[str] | None = None) None
- exception mozbuild.lockfiles.generate_python_lockfiles.MissingMachSiteFileError
Bases:
Exception
Raised when the required mach.txt site file is missing.
- exception mozbuild.lockfiles.generate_python_lockfiles.MissingUVError
Bases:
Exception
Raised when the required ‘uv’ executable is not on PATH.
mozbuild.lockfiles.mach_commands module
- mozbuild.lockfiles.mach_commands.generate_python_lockfiles(command_context, sites, keep_lockfiles)
mozbuild.lockfiles.site_dependency_extractor module
- class mozbuild.lockfiles.site_dependency_extractor.Dependency(name: str, version: str, path: str | None)
Bases:
object
- name: str
- path: str | None
- version: str
- exception mozbuild.lockfiles.site_dependency_extractor.DependencyParseError
Bases:
Exception
- class mozbuild.lockfiles.site_dependency_extractor.SiteDependencyExtractor(site_name: str, sites_dir: Path, topsrcdir: Path)
Bases:
object
- parse() Tuple[str | None, List[Dependency]]
- exception mozbuild.lockfiles.site_dependency_extractor.SiteFileNotFoundError
Bases:
Exception